import request from '@/utils/request'


/*------get部门数据--------*/
export function getPaperData(query) {
  return request({
    url: '/api/work/papers/',
    method: 'get',
    params: { ...query}
  })
}

/*------add部门数据--------*/
export function addPaperData(data) {
  return request({
    url: '/api/work/papers/',
    method: 'post',
    data
  })
}
/*------edit部门数据--------*/
export function editPaperData(obj) {
  return request({
    url: '/api/work/papers/'+obj.id+'/',
    method: 'put',
    data:obj
  })
}
/*------delete部门数据--------*/
export function delPaperData(pk) {
  return request({
    url: '/api/work/papers/'+pk+'/',
    method: 'delete',
  })
}
